3.340 \(\int \frac{x^2 \tan ^{-1}(a x)^2}{(c+a^2 c x^2)^{3/2}} \, dx\)

Optimal. Leaf size=349 \[ \frac{2 i \sqrt{a^2 x^2+1} \tan ^{-1}(a x) \text{PolyLog}\left (2,-i e^{i \tan ^{-1}(a x)}\right )}{a^3 c \sqrt{a^2 c x^2+c}}-\frac{2 i \sqrt{a^2 x^2+1} \tan ^{-1}(a x) \text{PolyLog}\left (2,i e^{i \tan ^{-1}(a x)}\right )}{a^3 c \sqrt{a^2 c x^2+c}}-\frac{2 \sqrt{a^2 x^2+1} \text{PolyLog}\left (3,-i e^{i \tan ^{-1}(a x)}\right )}{a^3 c \sqrt{a^2 c x^2+c}}+\frac{2 \sqrt{a^2 x^2+1} \text{PolyLog}\left (3,i e^{i \tan ^{-1}(a x)}\right )}{a^3 c \sqrt{a^2 c x^2+c}}+\frac{2 x}{a^2 c \sqrt{a^2 c x^2+c}}-\frac{2 i \sqrt{a^2 x^2+1} \tan ^{-1}\left (e^{i \tan ^{-1}(a x)}\right ) \tan ^{-1}(a x)^2}{a^3 c \sqrt{a^2 c x^2+c}}-\frac{x \tan ^{-1}(a x)^2}{a^2 c \sqrt{a^2 c x^2+c}}-\frac{2 \tan ^{-1}(a x)}{a^3 c \sqrt{a^2 c x^2+c}} \]

[Out]

(2*x)/(a^2*c*Sqrt[c + a^2*c*x^2]) - (2*ArcTan[a*x])/(a^3*c*Sqrt[c + a^2*c*x^2]) - (x*ArcTan[a*x]^2)/(a^2*c*Sqr
t[c + a^2*c*x^2]) - ((2*I)*Sqrt[1 + a^2*x^2]*ArcTan[E^(I*ArcTan[a*x])]*ArcTan[a*x]^2)/(a^3*c*Sqrt[c + a^2*c*x^
2]) + ((2*I)*Sqrt[1 + a^2*x^2]*ArcTan[a*x]*PolyLog[2, (-I)*E^(I*ArcTan[a*x])])/(a^3*c*Sqrt[c + a^2*c*x^2]) - (
(2*I)*Sqrt[1 + a^2*x^2]*ArcTan[a*x]*PolyLog[2, I*E^(I*ArcTan[a*x])])/(a^3*c*Sqrt[c + a^2*c*x^2]) - (2*Sqrt[1 +
 a^2*x^2]*PolyLog[3, (-I)*E^(I*ArcTan[a*x])])/(a^3*c*Sqrt[c + a^2*c*x^2]) + (2*Sqrt[1 + a^2*x^2]*PolyLog[3, I*
E^(I*ArcTan[a*x])])/(a^3*c*Sqrt[c + a^2*c*x^2])

________________________________________________________________________________________

Rubi [A]  time = 0.341122, antiderivative size = 349, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 9, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.375, Rules used = {4964, 4890, 4888, 4181, 2531, 2282, 6589, 4898, 191} \[ \frac{2 i \sqrt{a^2 x^2+1} \tan ^{-1}(a x) \text{PolyLog}\left (2,-i e^{i \tan ^{-1}(a x)}\right )}{a^3 c \sqrt{a^2 c x^2+c}}-\frac{2 i \sqrt{a^2 x^2+1} \tan ^{-1}(a x) \text{PolyLog}\left (2,i e^{i \tan ^{-1}(a x)}\right )}{a^3 c \sqrt{a^2 c x^2+c}}-\frac{2 \sqrt{a^2 x^2+1} \text{PolyLog}\left (3,-i e^{i \tan ^{-1}(a x)}\right )}{a^3 c \sqrt{a^2 c x^2+c}}+\frac{2 \sqrt{a^2 x^2+1} \text{PolyLog}\left (3,i e^{i \tan ^{-1}(a x)}\right )}{a^3 c \sqrt{a^2 c x^2+c}}+\frac{2 x}{a^2 c \sqrt{a^2 c x^2+c}}-\frac{2 i \sqrt{a^2 x^2+1} \tan ^{-1}\left (e^{i \tan ^{-1}(a x)}\right ) \tan ^{-1}(a x)^2}{a^3 c \sqrt{a^2 c x^2+c}}-\frac{x \tan ^{-1}(a x)^2}{a^2 c \sqrt{a^2 c x^2+c}}-\frac{2 \tan ^{-1}(a x)}{a^3 c \sqrt{a^2 c x^2+c}} \]

Antiderivative was successfully verified.

[In]

Int[(x^2*ArcTan[a*x]^2)/(c + a^2*c*x^2)^(3/2),x]

[Out]

(2*x)/(a^2*c*Sqrt[c + a^2*c*x^2]) - (2*ArcTan[a*x])/(a^3*c*Sqrt[c + a^2*c*x^2]) - (x*ArcTan[a*x]^2)/(a^2*c*Sqr
t[c + a^2*c*x^2]) - ((2*I)*Sqrt[1 + a^2*x^2]*ArcTan[E^(I*ArcTan[a*x])]*ArcTan[a*x]^2)/(a^3*c*Sqrt[c + a^2*c*x^
2]) + ((2*I)*Sqrt[1 + a^2*x^2]*ArcTan[a*x]*PolyLog[2, (-I)*E^(I*ArcTan[a*x])])/(a^3*c*Sqrt[c + a^2*c*x^2]) - (
(2*I)*Sqrt[1 + a^2*x^2]*ArcTan[a*x]*PolyLog[2, I*E^(I*ArcTan[a*x])])/(a^3*c*Sqrt[c + a^2*c*x^2]) - (2*Sqrt[1 +
 a^2*x^2]*PolyLog[3, (-I)*E^(I*ArcTan[a*x])])/(a^3*c*Sqrt[c + a^2*c*x^2]) + (2*Sqrt[1 + a^2*x^2]*PolyLog[3, I*
E^(I*ArcTan[a*x])])/(a^3*c*Sqrt[c + a^2*c*x^2])

Rule 4964

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^(p_.)*(x_)^(m_)*((d_) + (e_.)*(x_)^2)^(q_), x_Symbol] :> Dist[1/e, Int[
x^(m - 2)*(d + e*x^2)^(q + 1)*(a + b*ArcTan[c*x])^p, x], x] - Dist[d/e, Int[x^(m - 2)*(d + e*x^2)^q*(a + b*Arc
Tan[c*x])^p, x], x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[e, c^2*d] && IntegersQ[p, 2*q] && LtQ[q, -1] && IGtQ[m
, 1] && NeQ[p, -1]

Rule 4890

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^(p_.)/Sqrt[(d_) + (e_.)*(x_)^2], x_Symbol] :> Dist[Sqrt[1 + c^2*x^2]/Sq
rt[d + e*x^2], Int[(a + b*ArcTan[c*x])^p/Sqrt[1 + c^2*x^2], x], x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[e, c^2*
d] && IGtQ[p, 0] &&  !GtQ[d, 0]

Rule 4888

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^(p_.)/Sqrt[(d_) + (e_.)*(x_)^2], x_Symbol] :> Dist[1/(c*Sqrt[d]), Subst
[Int[(a + b*x)^p*Sec[x], x], x, ArcTan[c*x]], x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[e, c^2*d] && IGtQ[p, 0] &
& GtQ[d, 0]

Rule 4181

Int[csc[(e_.) + Pi*(k_.) + (f_.)*(x_)]*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[(-2*(c + d*x)^m*ArcTanh[E
^(I*k*Pi)*E^(I*(e + f*x))])/f, x] + (-Dist[(d*m)/f, Int[(c + d*x)^(m - 1)*Log[1 - E^(I*k*Pi)*E^(I*(e + f*x))],
 x], x] + Dist[(d*m)/f, Int[(c + d*x)^(m - 1)*Log[1 + E^(I*k*Pi)*E^(I*(e + f*x))], x], x]) /; FreeQ[{c, d, e,
f}, x] && IntegerQ[2*k] && IGtQ[m, 0]

Rule 2531

Int[Log[1 + (e_.)*((F_)^((c_.)*((a_.) + (b_.)*(x_))))^(n_.)]*((f_.) + (g_.)*(x_))^(m_.), x_Symbol] :> -Simp[((
f + g*x)^m*PolyLog[2, -(e*(F^(c*(a + b*x)))^n)])/(b*c*n*Log[F]), x] + Dist[(g*m)/(b*c*n*Log[F]), Int[(f + g*x)
^(m - 1)*PolyLog[2, -(e*(F^(c*(a + b*x)))^n)], x], x] /; FreeQ[{F, a, b, c, e, f, g, n}, x] && GtQ[m, 0]

Rule 2282

Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Dist[v/D[v, x], Subst[Int[FunctionOfExponentialFu
nction[u, x]/x, x], x, v], x]] /; FunctionOfExponentialQ[u, x] &&  !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; F
reeQ[{a, m, n}, x] && IntegerQ[m*n]] &&  !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x))*(F_)[v_] /; FreeQ[{a, b, c}, x
] && InverseFunctionQ[F[x]]]

Rule 6589

Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[PolyLog[n + 1, c*(a
+ b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d, e, n, p}, x] && EqQ[b*d, a*e]

Rule 4898

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^(p_)/((d_) + (e_.)*(x_)^2)^(3/2), x_Symbol] :> Simp[(b*p*(a + b*ArcTan[
c*x])^(p - 1))/(c*d*Sqrt[d + e*x^2]), x] + (-Dist[b^2*p*(p - 1), Int[(a + b*ArcTan[c*x])^(p - 2)/(d + e*x^2)^(
3/2), x], x] + Simp[(x*(a + b*ArcTan[c*x])^p)/(d*Sqrt[d + e*x^2]), x]) /; FreeQ[{a, b, c, d, e}, x] && EqQ[e,
c^2*d] && GtQ[p, 1]

Rule 191

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(x*(a + b*x^n)^(p + 1))/a, x] /; FreeQ[{a, b, n, p}, x] &
& EqQ[1/n + p + 1, 0]

Rubi steps

\begin{align*} \int \frac{x^2 \tan ^{-1}(a x)^2}{\left (c+a^2 c x^2\right )^{3/2}} \, dx &=-\frac{\int \frac{\tan ^{-1}(a x)^2}{\left (c+a^2 c x^2\right )^{3/2}} \, dx}{a^2}+\frac{\int \frac{\tan ^{-1}(a x)^2}{\sqrt{c+a^2 c x^2}} \, dx}{a^2 c}\\ &=-\frac{2 \tan ^{-1}(a x)}{a^3 c \sqrt{c+a^2 c x^2}}-\frac{x \tan ^{-1}(a x)^2}{a^2 c \sqrt{c+a^2 c x^2}}+\frac{2 \int \frac{1}{\left (c+a^2 c x^2\right )^{3/2}} \, dx}{a^2}+\frac{\sqrt{1+a^2 x^2} \int \frac{\tan ^{-1}(a x)^2}{\sqrt{1+a^2 x^2}} \, dx}{a^2 c \sqrt{c+a^2 c x^2}}\\ &=\frac{2 x}{a^2 c \sqrt{c+a^2 c x^2}}-\frac{2 \tan ^{-1}(a x)}{a^3 c \sqrt{c+a^2 c x^2}}-\frac{x \tan ^{-1}(a x)^2}{a^2 c \sqrt{c+a^2 c x^2}}+\frac{\sqrt{1+a^2 x^2} \operatorname{Subst}\left (\int x^2 \sec (x) \, dx,x,\tan ^{-1}(a x)\right )}{a^3 c \sqrt{c+a^2 c x^2}}\\ &=\frac{2 x}{a^2 c \sqrt{c+a^2 c x^2}}-\frac{2 \tan ^{-1}(a x)}{a^3 c \sqrt{c+a^2 c x^2}}-\frac{x \tan ^{-1}(a x)^2}{a^2 c \sqrt{c+a^2 c x^2}}-\frac{2 i \sqrt{1+a^2 x^2} \tan ^{-1}\left (e^{i \tan ^{-1}(a x)}\right ) \tan ^{-1}(a x)^2}{a^3 c \sqrt{c+a^2 c x^2}}-\frac{\left (2 \sqrt{1+a^2 x^2}\right ) \operatorname{Subst}\left (\int x \log \left (1-i e^{i x}\right ) \, dx,x,\tan ^{-1}(a x)\right )}{a^3 c \sqrt{c+a^2 c x^2}}+\frac{\left (2 \sqrt{1+a^2 x^2}\right ) \operatorname{Subst}\left (\int x \log \left (1+i e^{i x}\right ) \, dx,x,\tan ^{-1}(a x)\right )}{a^3 c \sqrt{c+a^2 c x^2}}\\ &=\frac{2 x}{a^2 c \sqrt{c+a^2 c x^2}}-\frac{2 \tan ^{-1}(a x)}{a^3 c \sqrt{c+a^2 c x^2}}-\frac{x \tan ^{-1}(a x)^2}{a^2 c \sqrt{c+a^2 c x^2}}-\frac{2 i \sqrt{1+a^2 x^2} \tan ^{-1}\left (e^{i \tan ^{-1}(a x)}\right ) \tan ^{-1}(a x)^2}{a^3 c \sqrt{c+a^2 c x^2}}+\frac{2 i \sqrt{1+a^2 x^2} \tan ^{-1}(a x) \text{Li}_2\left (-i e^{i \tan ^{-1}(a x)}\right )}{a^3 c \sqrt{c+a^2 c x^2}}-\frac{2 i \sqrt{1+a^2 x^2} \tan ^{-1}(a x) \text{Li}_2\left (i e^{i \tan ^{-1}(a x)}\right )}{a^3 c \sqrt{c+a^2 c x^2}}-\frac{\left (2 i \sqrt{1+a^2 x^2}\right ) \operatorname{Subst}\left (\int \text{Li}_2\left (-i e^{i x}\right ) \, dx,x,\tan ^{-1}(a x)\right )}{a^3 c \sqrt{c+a^2 c x^2}}+\frac{\left (2 i \sqrt{1+a^2 x^2}\right ) \operatorname{Subst}\left (\int \text{Li}_2\left (i e^{i x}\right ) \, dx,x,\tan ^{-1}(a x)\right )}{a^3 c \sqrt{c+a^2 c x^2}}\\ &=\frac{2 x}{a^2 c \sqrt{c+a^2 c x^2}}-\frac{2 \tan ^{-1}(a x)}{a^3 c \sqrt{c+a^2 c x^2}}-\frac{x \tan ^{-1}(a x)^2}{a^2 c \sqrt{c+a^2 c x^2}}-\frac{2 i \sqrt{1+a^2 x^2} \tan ^{-1}\left (e^{i \tan ^{-1}(a x)}\right ) \tan ^{-1}(a x)^2}{a^3 c \sqrt{c+a^2 c x^2}}+\frac{2 i \sqrt{1+a^2 x^2} \tan ^{-1}(a x) \text{Li}_2\left (-i e^{i \tan ^{-1}(a x)}\right )}{a^3 c \sqrt{c+a^2 c x^2}}-\frac{2 i \sqrt{1+a^2 x^2} \tan ^{-1}(a x) \text{Li}_2\left (i e^{i \tan ^{-1}(a x)}\right )}{a^3 c \sqrt{c+a^2 c x^2}}-\frac{\left (2 \sqrt{1+a^2 x^2}\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_2(-i x)}{x} \, dx,x,e^{i \tan ^{-1}(a x)}\right )}{a^3 c \sqrt{c+a^2 c x^2}}+\frac{\left (2 \sqrt{1+a^2 x^2}\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_2(i x)}{x} \, dx,x,e^{i \tan ^{-1}(a x)}\right )}{a^3 c \sqrt{c+a^2 c x^2}}\\ &=\frac{2 x}{a^2 c \sqrt{c+a^2 c x^2}}-\frac{2 \tan ^{-1}(a x)}{a^3 c \sqrt{c+a^2 c x^2}}-\frac{x \tan ^{-1}(a x)^2}{a^2 c \sqrt{c+a^2 c x^2}}-\frac{2 i \sqrt{1+a^2 x^2} \tan ^{-1}\left (e^{i \tan ^{-1}(a x)}\right ) \tan ^{-1}(a x)^2}{a^3 c \sqrt{c+a^2 c x^2}}+\frac{2 i \sqrt{1+a^2 x^2} \tan ^{-1}(a x) \text{Li}_2\left (-i e^{i \tan ^{-1}(a x)}\right )}{a^3 c \sqrt{c+a^2 c x^2}}-\frac{2 i \sqrt{1+a^2 x^2} \tan ^{-1}(a x) \text{Li}_2\left (i e^{i \tan ^{-1}(a x)}\right )}{a^3 c \sqrt{c+a^2 c x^2}}-\frac{2 \sqrt{1+a^2 x^2} \text{Li}_3\left (-i e^{i \tan ^{-1}(a x)}\right )}{a^3 c \sqrt{c+a^2 c x^2}}+\frac{2 \sqrt{1+a^2 x^2} \text{Li}_3\left (i e^{i \tan ^{-1}(a x)}\right )}{a^3 c \sqrt{c+a^2 c x^2}}\\ \end{align*}

Mathematica [A]  time = 0.347808, size = 228, normalized size = 0.65 \[ -\frac{\sqrt{a^2 x^2+1} \left (-2 i \tan ^{-1}(a x) \text{PolyLog}\left (2,-i e^{i \tan ^{-1}(a x)}\right )+2 i \tan ^{-1}(a x) \text{PolyLog}\left (2,i e^{i \tan ^{-1}(a x)}\right )+2 \text{PolyLog}\left (3,-i e^{i \tan ^{-1}(a x)}\right )-2 \text{PolyLog}\left (3,i e^{i \tan ^{-1}(a x)}\right )-\frac{2 a x}{\sqrt{a^2 x^2+1}}+\frac{a x \tan ^{-1}(a x)^2}{\sqrt{a^2 x^2+1}}+\frac{2 \tan ^{-1}(a x)}{\sqrt{a^2 x^2+1}}+\tan ^{-1}(a x)^2 \left (-\log \left (1-i e^{i \tan ^{-1}(a x)}\right )\right )+\tan ^{-1}(a x)^2 \log \left (1+i e^{i \tan ^{-1}(a x)}\right )\right )}{a^3 c \sqrt{c \left (a^2 x^2+1\right )}} \]

Warning: Unable to verify antiderivative.

[In]

Integrate[(x^2*ArcTan[a*x]^2)/(c + a^2*c*x^2)^(3/2),x]

[Out]

-((Sqrt[1 + a^2*x^2]*((-2*a*x)/Sqrt[1 + a^2*x^2] + (2*ArcTan[a*x])/Sqrt[1 + a^2*x^2] + (a*x*ArcTan[a*x]^2)/Sqr
t[1 + a^2*x^2] - ArcTan[a*x]^2*Log[1 - I*E^(I*ArcTan[a*x])] + ArcTan[a*x]^2*Log[1 + I*E^(I*ArcTan[a*x])] - (2*
I)*ArcTan[a*x]*PolyLog[2, (-I)*E^(I*ArcTan[a*x])] + (2*I)*ArcTan[a*x]*PolyLog[2, I*E^(I*ArcTan[a*x])] + 2*Poly
Log[3, (-I)*E^(I*ArcTan[a*x])] - 2*PolyLog[3, I*E^(I*ArcTan[a*x])]))/(a^3*c*Sqrt[c*(1 + a^2*x^2)]))

________________________________________________________________________________________

Maple [F]  time = 0.873, size = 0, normalized size = 0. \begin{align*} \int{{x}^{2} \left ( \arctan \left ( ax \right ) \right ) ^{2} \left ({a}^{2}c{x}^{2}+c \right ) ^{-{\frac{3}{2}}}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*arctan(a*x)^2/(a^2*c*x^2+c)^(3/2),x)

[Out]

int(x^2*arctan(a*x)^2/(a^2*c*x^2+c)^(3/2),x)

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*arctan(a*x)^2/(a^2*c*x^2+c)^(3/2),x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\sqrt{a^{2} c x^{2} + c} x^{2} \arctan \left (a x\right )^{2}}{a^{4} c^{2} x^{4} + 2 \, a^{2} c^{2} x^{2} + c^{2}}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*arctan(a*x)^2/(a^2*c*x^2+c)^(3/2),x, algorithm="fricas")

[Out]

integral(sqrt(a^2*c*x^2 + c)*x^2*arctan(a*x)^2/(a^4*c^2*x^4 + 2*a^2*c^2*x^2 + c^2), x)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{2} \operatorname{atan}^{2}{\left (a x \right )}}{\left (c \left (a^{2} x^{2} + 1\right )\right )^{\frac{3}{2}}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2*atan(a*x)**2/(a**2*c*x**2+c)**(3/2),x)

[Out]

Integral(x**2*atan(a*x)**2/(c*(a**2*x**2 + 1))**(3/2), x)

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{2} \arctan \left (a x\right )^{2}}{{\left (a^{2} c x^{2} + c\right )}^{\frac{3}{2}}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*arctan(a*x)^2/(a^2*c*x^2+c)^(3/2),x, algorithm="giac")

[Out]

integrate(x^2*arctan(a*x)^2/(a^2*c*x^2 + c)^(3/2), x)